Ext.define('appmod.view.content.TreeDashboard', {
    extend: 'Ext.panel.Panel',
    alias: ['widget.content.treedashboard','widget.content-treedashboard'],
    region : 'center',
    layout : {
		type:'border'
	},
	requires: [
		'appmod.view.content.FileView'
	],	
	border : false,
	margins:"5 5 5 5",

    initComponent: function() {
        var me = this;
		var prodTreeStore = Ext.create('appmod.store.content.Tree' , {
	        proxy: {
	            type: 'ajax',
	            url: '../../data/resource/content/tree_contents.json'
	        }
		});
        Ext.applyIf(me,{
			items:[
				{
					xtype:'content.list',
					store:prodTreeStore,
					region:'west',
					width:200
				},
				{
					xtype:'content.fileview',
					region:'center'
				}
			]
		});
        me.callParent(arguments);
    }
});